package com.yunhe.device.domain.device;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.RelationshipEntity;

import java.util.List;

/**
 * 连接设备对象
 * @desc 连接设备对象定义
 * @author liuronglei
 */
@ApiModel(value = "ConnectivityDevice", description = "连接设备对象")
@RelationshipEntity(type="CONNECT_TO")
public class ConnectivityDevice {
    @ApiModelProperty(value = "id")
    @Id
    private Long id;
    @ApiModelProperty(value = "code")
    @Property(name = "code")
    private Long code;
    @ApiModelProperty(value = "名称")
    @Property(name = "NAME")
    private String name;
    @ApiModelProperty(value = "基础电压ID")
    @Property(name = "BASEVOLTAGE")
    private Long baseVoltageId;
    @ApiModelProperty(value = "开关类型")
    @Property(name = "BREAKTYPE")
    private String breakerType;
    @ApiModelProperty(value = "I节点")
    @Property(name = "I_node")
    private Long iNode;
    @ApiModelProperty(value = "J节点")
    @Property(name = "J_node")
    private Long jNode;
    @ApiModelProperty(value = "变电站ID")
    @Property(name = "substation")
    private Long substation;
    @ApiModelProperty(value = "端子ID")
    @Property(name = "terminalId")
    private List<Long> terminalId;
    @ApiModelProperty(value = "路径名")
    @Property(name = "pathName")
    private String pathName;
    @ApiModelProperty(value = "类型", hidden = true)
    @Property(name = "type")
    private String type;
    @ApiModelProperty(value = "开始节点")
    private ConnectivityNode startNode;
    @ApiModelProperty(value = "结束节点")
    private ConnectivityNode endNode;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getBaseVoltageId() {
        return baseVoltageId;
    }

    public void setBaseVoltageId(Long baseVoltageId) {
        this.baseVoltageId = baseVoltageId;
    }

    public String getBreakerType() {
        return breakerType;
    }

    public void setBreakerType(String breakerType) {
        this.breakerType = breakerType;
    }

    public Long getiNode() {
        return iNode;
    }

    public void setiNode(Long iNode) {
        this.iNode = iNode;
    }

    public Long getjNode() {
        return jNode;
    }

    public void setjNode(Long jNode) {
        this.jNode = jNode;
    }

    public Long getSubstation() {
        return substation;
    }

    public void setSubstation(Long substation) {
        this.substation = substation;
    }

    public List<Long> getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(List<Long> terminalId) {
        this.terminalId = terminalId;
    }

    public String getPathName() {
        return pathName;
    }

    public void setPathName(String pathName) {
        this.pathName = pathName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public ConnectivityNode getStartNode() {
        return startNode;
    }

    public void setStartNode(ConnectivityNode startNode) {
        this.startNode = startNode;
    }

    public ConnectivityNode getEndNode() {
        return endNode;
    }

    public void setEndNode(ConnectivityNode endNode) {
        this.endNode = endNode;
    }
}
